<template>
	<view class="listLeft">
		<view class="author">
			{{item.author}}
		</view>
		<view class="title">
			{{item.title}}
		</view>
		<view class="box">
			<view class="music">
				@音乐开始，月光喜爱跳舞，婀娜多姿
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		// 动态渲染页面
		// 接收来自videoList的item
		props:['item'],
		name:"listLeft",
		data() {
			return {
				
			};
		}
	}
</script>

<style>
	.listLeft{
		height: 150px;
		width: 150px;
		margin-left:10px;
		color: #FFFFFF;
	}
	.author{
		height: 35px;
		line-height: 35px;
		font-size: 15px;
	}
	.title{
		line-height: 22px;
		font-size: 12px;
		width: 100%;
		word-wrap: break-word;
	}
	.box{
		width: 100px;
		/* 滚动文字隐藏 */
		overflow: hidden;
	}
	.music{
		height: 35px;
		line-height: 35px;
		font-size: 12px;
		width: 140px;
		/* 添加音乐滚动效果 */
		animation: music 4s linear 0.2s infinite;
	}
	
	/* 音乐滚动效果 */
	@keyframes music{
		0%{
			transform: translate3d(80%,0,0);
		}
		100%{
			transform: translate3d(-80%,0,0);
		}
	}

</style>